package org.jeecg.modules.demo.flowable.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;

import java.util.Date;
import java.util.Map;

/**
 * 任务实例实体类
 *
 * @Author YuXD
 * @since 2022-04-17
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
public class TaskInstanceEntity {

    /**
     * 任务ID
     */
    private String id;
    @Dict(dicCode = "progress_type")
    private String progress;

    /**
     * 流程实例ID
     */
    private String processInstanceId;

    /**
     * 任务名称
     */
    private String name;

    private String itemName;

    private String caozuo;

    private Integer xuhao;

    /**
     * 任务处理人
     */
    private String assignee;

    /**
     * 开始日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 结束日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 任务定义key
     * vehicleAdminApprove
     */
    private String taskDefinitionKey;


    /**
     * 流程实例名称：一般拿报表名 + '审核组成'
     */
    private String processInstanceName;

    /**
     * 任务局部变量
     */
    private Map<String, Object> taskLocalVariables;

    /**
     * 流程变量
     */
    private Map<String, Object> processVariables;

}
